<?php
namespace app\console\validate;

use think\Validate;

class GoodsType extends Validate
{
    protected $rule = [
        ['parenTid', 'require'],
        ['title', 'require'],

    ];

    protected $message = [
        'title.require'    => '请填写名称',
        'parenTid.require' => '请填写栏目名称',

    ];

    protected $scene = [
        'create' => ['title', 'status', 'parenTid'],
    ];
}